package com.open.capacity.paper.service.impl;

import com.open.capacity.common.model.RateOption;
import com.open.capacity.paper.dao.RateOptionDao;
import com.open.capacity.paper.service.RateOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RateOptionServiceImpl implements RateOptionService {
    @Autowired(required = false)
    RateOptionDao rateOptionDao;
    @Override
    public List<RateOption> getRateOptionList() {
        return rateOptionDao.getRateOptionList();
    }

    @Override
    public RateOption getRateOption(Integer rtopid) {
        return rateOptionDao.getRateOption(rtopid);
    }

    @Override
    public int addRateOption(RateOption rateType) {
        return rateOptionDao.addRateOption(rateType);
    }

    @Override
    public int updateRateOption(RateOption rateType) {
        return rateOptionDao.updateRateOption(rateType);
    }

    @Override
    public int deleteRateOption(Integer rtopid) {
        return rateOptionDao.deleteRateOption(rtopid);
    }
}
